package com.rongc.client.freight.business.message.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.business.message.model.MessageBean;


/*
*  消息
* */
public class MessageApi extends AbsRequest<MessageApi.MessageParams, MessageBean[]> {

    public MessageApi(MessageParams feedbackParams, Response.Listener<MessageBean[]> listener, Response.ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getLoadMessageUrl(), feedbackParams, listener, errorListener, MessageBean[].class);
    }

    public static class MessageParams extends BaseParams {

        public MessageParams() {
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }
}
